<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Class_time extends User_Controller {

	public function __construct()
    {
        parent::__construct();
        // Your own constructor code
        $this->smarty->assign("current_class", $this->router->fetch_class());
        $this->smarty->assign("current_method",$this->router->fetch_method());
		$this->uid = $this->user_data['id'];
		if( $this->logged_in==0) {header("Location:/");exit;}
    }


    	/**
	 * 课程表
	 * @return [type] [description]
	 */
	public function index()
	{
		$this->smarty->assign("action","我的课程表");
		//获取课程表
		$this->load->model('Offline_class_model');
		$plan_list = $this->Offline_class_model->get_class_plan($this->user_data['id']);
		$this->smarty->assign("plan_list", $plan_list);

		$this->smarty->assign("menu", "classes");
		$this->smarty->display("user/class_time.html");
	}


}